// an interface with any number of members
interface Foo {
  name: string;
}

interface Bar {
  age: number;
}

// an interface with more than one supertype
// in this case the interface can be used as a replacement of an intersection type.
export interface Baz extends Foo, Bar {}

//github
interface Foo {
  name: string;
}

interface Foo {
  name: string;
}
interface Bar {
  age: number;
}
// valid because extending multiple interfaces can be used instead of a union type
interface Baz extends Foo, Bar {}
